getPingType

abstract fun getPingType(): Int

Gets the type of beacon event.

This value is a bitmask. To determine the specific event type, perform a bitwise AND operation with the event type constants:

Example:


if ((beacon.getPingType() & Beacon.EVENT_TYPE_ENTER) == Beacon.EVENT_TYPE_ENTER) {
    Log.d("BeaconEvent", "User entered beacon region.");
} else if ((beacon.getPingType() & Beacon.EVENT_TYPE_EXIT) == Beacon.EVENT_TYPE_EXIT) {
    Log.d("BeaconEvent", "User exited beacon region.");
}

Return

An integer representing the bitmask for the ping type.